package com.wondertek.service.dto.business.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author wangyu
 */
@Data
public class RentalDeviceAddReq {

    @NotBlank(message = "app.user.id.not.null")
    @Schema(name = "consumerId",description = "app用户id")
    private String consumerId;

    @NotEmpty(message = "device.id.not.null")
    @Schema(name = "deviceId",description = "设备id")
    private List<String> deviceId;

  //  @NotBlank(message = "partition.id.not.null")
    @Schema(name = "roomId",description = "分区id")
    private List<String> roomId;

    @NotNull(message = "starttime.not.null")
    @Schema(name = "startDate",description = "开始时间")
    private Date startDate;

    @NotNull(message = "endtime.not.null")
    @Schema(name = "endDate",description = "结束时间")
    private Date endDate;

}
